import java.lang.reflect.Field;
import java.util.Date;
import java.util.HashMap;


public class Test {
	private String a;
	private Integer b;
	
	public HashMap getTypeMap(){
		Field classFields[] = this.getClass().getDeclaredFields();		
		
		HashMap returnMap = new HashMap();
		
		for (Field curField:classFields){			
			String fieldName = curField.getName();
			if (curField.getType().getName().contains("String")){
				returnMap.put(fieldName, new String());
			}
			if (curField.getType().getName().contains("Integer")){
				returnMap.put(fieldName, new Integer(0));
			}
			if (curField.getType().getName().contains("Date")){
				returnMap.put(fieldName, new Date());
			}
			
		}
		
		return returnMap;
		
	}
	public String getA() {
		return a;
	}
	public void setA(String a) {
		this.a = a;
	}
	public Integer getB() {
		return b;
	}
	public void setB(Integer b) {
		this.b = b;
	}
	
	
}
